package com.guiji.quartz.task;

import com.guiji.quartz.domain.Aninews;
import com.guiji.quartz.domain.Zdnet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component("zdnetTask")
public class ZdnetTask {
	private static final Logger log = LoggerFactory.getLogger(ZdnetTask.class);
	public void zdnetTask() throws Exception {
		Long startTime = System.currentTimeMillis();
		Zdnet zdnet = new Zdnet();
		try {
			zdnet.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("ZdnetTask-end-:{}",System.currentTimeMillis()-startTime);
		}

	}
}
